package com.kaishengit.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.EmployeeDao;
import com.kaishengit.pojo.Employee;

@Service
@Transactional
public class EmployeeService{
	private EmployeeDao employeeDao;

	
	
	public Employee findByNameAndPwd(Employee employee) {
		
		return employeeDao.findByNameAndPwd(employee);
	}
	

	//set
	@Autowired
	public void setEmployeeDao(EmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}


	public Employee findById(String id) {
		return employeeDao.findById(id);
	}




	
	
}
